/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author MaleneLykke
 */
public class Truck {

    private int id;
    private String truckType;
    private int palletCapacity;
    private int volume;
    private int maxWeight;
    private String strSpecialGoods;
    private boolean specialGoods;

    public Truck(int id, String truckType, int palletCapacity, int volume, int maxWeight, boolean specialShipment) {
        this.id = id;
        this.truckType = truckType;
        this.palletCapacity = palletCapacity;
        this.volume = volume;
        this.maxWeight = maxWeight;
        this.specialGoods = specialShipment;
    }

    public Truck(int id, String truckType, int palletCapacity, int volume, int maxWeight, String strSpecialShipment) {
        this.id = id;
        this.truckType = truckType;
        this.palletCapacity = palletCapacity;
        this.volume = volume;
        this.maxWeight = maxWeight;
        this.strSpecialGoods = strSpecialShipment;
    }

    public String getStrSpecialShipment() {
        return strSpecialGoods;
    }

    public void setStrSpecialShipment(String strSpecialShipment) {
        this.strSpecialGoods = strSpecialShipment;
    }

    public String getTruckType() {
        return truckType;
    }

    public void setTruckType(String truckType) {
        this.truckType = truckType;
    }

    public int getPalletCapacity() {
        return palletCapacity;
    }

    public void setPalletCapacity(int palletCapacity) {
        this.palletCapacity = palletCapacity;
    }

    public int getVolume() {
        return volume;
    }

    public void setVolume(int volume) {
        this.volume = volume;
    }

    public int getMaxWeight() {
        return maxWeight;
    }

    public void setMaxWeight(int maxWeight) {
        this.maxWeight = maxWeight;
    }

    public boolean isSpecialShipment() {
        return specialGoods;
    }

    public void setSpecialShipment(boolean specialShipment) {
        this.specialGoods = specialShipment;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return id + ". " + truckType;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Truck other = (Truck) obj;
        return this.id == other.id;
    }

}
